<%@page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="btsm.bean.BTSPage,java.sql.*"%>
<%!ResultSet rs;%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%
        BTSPage mypage = new BTSPage("acdcdistribution", "");
%>
<%
            String jspName = request.getRequestURI();
            jspName = jspName.substring(jspName.lastIndexOf("/") + 1);
	        String strToPage = request.getParameter("ToPage");
		    String strbtsname = request.getParameter("btsname");
			String strbtscode = (String) request.getAttribute("btscode");
			String strsnid = (String) request.getAttribute("snid");
			if(strsnid == null || strsnid.equals("null"))
				strsnid = "";	
%>
<%String titlename="交直流配电数据";%>
<script language="javascript" src="jscheck.js"></script>
<script type="text/javascript" src="./datePicker/WdatePicker.js"></script>
<HTML>
<HEAD>
<TITLE><%=titlename%>管理</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="Admin_Style.css" type=text/css rel=stylesheet>
</HEAD>
<BODY style="margin:2px; overflow:auto">
<script>
    <!--
    function tst(obj0,obj1,obj2){
        obj0.style.border="1 "+obj1+" solid";
        obj0.style.background=obj2;
    }
    //-->
	function btnReturn(){
	     document.frmReturn.submit();
	}
</script>
<script>
	function btnRinsertS(){
		document.Jz_myform.seraction.value="serinsertsimple";
		document.Jz_myform.submit();
	}
	function btnModifyU(){
		document.Jz_myform.seraction.value="sermod";
		document.Jz_myform.submit();
	}
</script>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    function textCounter(field, maxlimit) {
        if (field.value.length > maxlimit)
            field.value = field.value.substring(0, maxlimit);
    }
    //-->
</SCRIPT>
<SCRIPT>
    function tjsj(x){
        document.Jz_myform.snid.value=x;
		document.Jz_myform.seraction.value="serdel";
        if(confirm('确认要删除流水号为'+x+'的记录吗？'))
        	document.Jz_myform.submit();     
    }

    function tjsjx(x){
        document.Jz_myform.snid.value=x;
		document.Jz_myform.seraction.value="sermodp";
        document.Jz_myform.submit();
    }
</SCRIPT>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  
  <!--*********搜索工具条开始*****************-->
  <!--*********搜索工具条结束*****************-->
  <!--*************列表显示开始****************-->
  <TR>
  
  <TD>
  
  <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
    <TR>
    
    <TD>
    
    <TABLE class=border cellSpacing=1 cellPadding=2 width="100%" align=center border=0>
      <FORM name="hj_myform" action="ser_cableRPole" method="post">
        <TBODY id=Tabs>
          <!--光缆管理列表表头开始-->
          <TR  align=middle height=2l2>
            <TD colspan="3">&nbsp;</TD>
            <TD class=title colspan="3">配电箱</TD>
            <TD class=title colspan="3">空开</TD>
            <TD colspan="2">&nbsp;</TD>
          </TR>
          <TR class=title align=middle height=2l2>
            <TD>流水号</TD>
            <TD>基站编号</TD>
            <TD>基站名称</TD>
            <TD>厂家</TD>
            <TD>型号</TD>
            <TD>其它</TD>
            <TD>厂家</TD>
            <TD>型号</TD>
            <TD>其它</TD>
            <TD colspan="2"><p align="center">操作</p></TD>
          </TR>
          <!--光缆管理列表列表表头结束-->
          <!--基站地理环境管理记录开始-->
          <%
		String strValues[] = new String[49];
		String idtmp;

        if (session.getAttribute("parax") == null) {
            rs = mypage.myBTSFQuery(request, response, 1, 10, strbtscode);
        } else {
            rs = mypage.myBTSFQuery(request, response, 1, 10, strbtscode);
        }

        while (rs.next()) {
				
            %>
          <TR class=tdbg onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'" align=middle>
            <TD><%=rs.getString(1)%></TD>
            <TD><%=rs.getString(2)%></TD>
            <TD><%=rs.getString(3)%></TD>
            <TD><%=rs.getString(4)%></TD>
            <TD><%=rs.getString(5)%></TD>
            <TD><%=rs.getString(6)%></TD>
            <TD><%=rs.getString(7)%></TD>
            <TD><%=rs.getString(8)%></TD>
            <TD><%=rs.getString(9)%></TD>
            <TD align="center"><a href="javascript:tjsjx('<%=rs.getString(1)%>')">修改</a></TD>
            <TD align="center"><a href="javascript:tjsj('<%=rs.getString(1)%>')">删除</a></TD>
          </TR>
          <!--基站地理环境管理记录结束-->
          <%
	 		idtmp = rs.getString(1);
			if(strsnid.equals(""))
	        {
    	        strsnid = rs.getString(1);
        	}
			if(strsnid.equalsIgnoreCase(idtmp))
			{
				for(int i = 0; i < 42; ++i)
				{
						strValues[i] = rs.getString(i+1);
				}
			}		

        }
        String footer = mypage.PageFooter("ser_bts?seraction=sermodp&btscode="+strbtscode+"&filesnames="+jspName+"&");
            %>
        <% 
			rs.close();
        	mypage.dbConClose();
		%>
        <p align="left">
      </FORM>
      </p>
      
      </TD>
      
      </TR>
      
      <TR class=tdbg onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'" align=middle>
        <TD colspan="13"><p align="center">
          <div class="article-bottom">
            <div class="pages">
              <%out.println(footer);%>
            </div>
          </div>
          <!--article-bottom -->
          <!--content -->
          <!--mainWrapper -->
          <div id="footer">
            <div id="innerFooter"></div>
          </div></TD>
      </TR>
      </TBODY>
      
    </TABLE>
    </TD>
    </TR>
  </TABLE>
  </TD>
  
  </TR>
  
  <!--************列表显示结束****************-->
  <TR>
    <TD><TABLE class=border cellSpacing=1 cellPadding=2 width="100%" align=center border=0>
        <FORM name="Jz_myform" action="ser_acdc" method="post">
          <!--更改-->
          <!--添加数据表单开始-->
          <TBODY id=Tabs>
            <TR class=tdbg>
              <TD class=tdbg5 height="26">流水号：</TD>
              <TD height="26"><%=strValues[0]%>
                <input type="hidden" name="T1" size="46" class=text2d value="<%=strsnid%>" maxlength="20" onBlur="chk(this.value,this)">
              </TD>
              <TD class=tdbg5 height="26">基站编号：</TD>
              <TD height="26"><%=strValues[1]%>
                <input type="hidden" name="T1" size="46" class=text2d value="<%=strbtscode%>" maxlength="12" onBlur="checkQuote(this.value,this)">
              </TD>
            </TR>
            <tr class=tdbg>
              <TD class=tdbg5 height="26">基站名称：</TD>
              <TD height="26" colspan="3"><%=strValues[2]%>
                <input type="hidden" name="T1" size="46" class=text2d value="<%=strValues[2]%>" maxlength="20" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="26" colspan="4"><font color="#0000FF">以下是配电箱数据</font></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="26">厂家：</TD>
              <TD height="26"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[3]%>" maxlength="32" onBlur="checkQuote(this.value,this)"></TD>
              <TD class=tdbg5 height="26">型号：</TD>
              <TD height="26"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[4]%>" maxlength="24" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="26">其它：</TD>
              <TD height="26" colspan="3"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[5]%>" maxlength="24" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="26" colspan="4"><font color="#0000FF">以下是空开数据</font></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">厂家：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[6]%>" maxlength="32" onBlur="checkQuote(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 型号：</TD>
              <TD height="18"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[7]%>" maxlength="24" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">容量：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[8]%>" maxlength="24" onBlur="checkQuote(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 其它：</TD>
              <TD height="18"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[9]%>" maxlength="24" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">更换记录：</TD>
              <TD height="18" colspan="3"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[10]%>" maxlength="24" onBlur="checkQuote(this.value,this)"></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18" colspan="4"><font color="#0000FF">以下是配电箱至开关电源柜交流线缆数据</font></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">电缆规格：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[11]%>" maxlength="24" onBlur="checkQuote(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 电缆类型：</TD>
              <TD height="18"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[12]%>" maxlength="24" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">数量（根）：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[13]%>" maxlength="14" onBlur="isDigit(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 长度（米）：</TD>
              <TD height="18"><input type="text" name="T1" size="26" class=text2d value="<%=strValues[14]%>" maxlength="10" onBlur="chk(this.value,this)"></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">整治及更换记录：</TD>
              <TD height="18" colspan="3"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[15]%>" maxlength="24" onBlur="checkQuote(this.value,this)"></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18" colspan="4"><font color="#0000FF">以下是稳压器数据</font></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">厂家：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[16]%>" maxlength="32" onBlur="checkQuote(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 型号：</TD>
              <TD height="18"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[17]%>" maxlength="24" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">容量：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[18]%>" maxlength="24" onBlur="checkQuote(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 启用时间：</TD>
              <TD height="18"><input type="text" name="T1" size="12" class="Wdate" value="<%=strValues[19]%>" id="d122" onFocus="WdatePicker({isShowWeek:true,onpicked:function() {$dp.$('d122_1').value=$dp.cal.getP('W','W');$dp.$('d122_2').value=$dp.cal.getP('W','WW');}})"/></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">更换及维修记录：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[20]%>" maxlength="24" onBlur="checkQuote(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 照明：</TD>
              <TD height="18"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[21]%>" maxlength="24" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">插座：</TD>
              <TD height="18" colspan="3"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[22]%>" maxlength="24" onBlur="checkQuote(this.value,this)"></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18" colspan="4"><font color="#0000FF">以下是机柜至电源柜线缆数据</font></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">电缆规格：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[23]%>" maxlength="24" onBlur="checkQuote(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 电缆类型：</TD>
              <TD height="18"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[24]%>" maxlength="24" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">数量（根）：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[25]%>" maxlength="11" onBlur="isDigit(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 长度（米）：</TD>
              <TD height="18"><input type="text" name="T1" size="26" class=text2d value="<%=strValues[26]%>" maxlength="10" onBlur="chk(this.value,this)"></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">整治及更换记录：</TD>
              <TD height="18" colspan="3"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[27]%>" maxlength="24" onBlur="checkQuote(this.value,this)"></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18" colspan="4"><font color="#0000FF">以下是DC/DC转换器数据</font></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">规格型号：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[28]%>" maxlength="24" onBlur="checkQuote(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 厂家：</TD>
              <TD height="18"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[29]%>" maxlength="32" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">数量：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[30]%>" maxlength="11" onBlur="isDigit(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 容量：</TD>
              <TD height="18"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[31]%>" maxlength="24" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">启用时间：</TD>
              <TD height="18"><input type="text" name="T1" size="12" class="Wdate" value="<%=strValues[32]%>" id="d133" onFocus="WdatePicker({isShowWeek:true,onpicked:function() {$dp.$('d133_1').value=$dp.cal.getP('W','W');$dp.$('d133_2').value=$dp.cal.getP('W','WW');}})"/></TD>
              <TD class=tdbg5 height="18"> 更换及维修记录：</TD>
              <TD height="18"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[33]%>" maxlength="24" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18" colspan="4"><font color="#0000FF">以下是直流配电屏数据</font></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">规格型号：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[34]%>" maxlength="24" onBlur="checkQuote(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 厂家：</TD>
              <TD height="18"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[35]%>" maxlength="32" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">数量：</TD>
              <TD height="18"><input type="text" name="T1" size="38" class=text2d value="<%=strValues[36]%>" maxlength="11" onBlur="isDigit(this.value,this)"></TD>
              <TD class=tdbg5 height="18"> 容量：</TD>
              <TD height="18"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[37]%>" maxlength="24" onBlur="checkQuote(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">启用时间：</TD>
              <TD height="18"><input type="text" name="T1" size="12" class="Wdate" value="<%=strValues[38]%>" id="d135" onFocus="WdatePicker({isShowWeek:true,onpicked:function() {$dp.$('d135_1').value=$dp.cal.getP('W','W');$dp.$('d135_2').value=$dp.cal.getP('W','WW');}})"/></TD>
              <TD class=tdbg5 height="18"> 更换及维修记录：</TD>
              <TD height="18"><input type="text" name="T1" size="46" class=text2d value="<%=strValues[39]%>" maxlength="24" onBlur="checkQuote(this.value,this)"><input type="hidden" name="T1" value="">
              </TD>
            </tr>
          <TR class=tdbg>
            <TD class=tdbg5 height="19">备注：</TD>
            <TD colspan="3" height="19"><textarea rows="7" name="T1" id="T2" cols="60" class=text2d onPropertyChange="textCounter(T2,64)" onBlur="checks(this.value,this)"><%=strValues[41]%></textarea>
            </TD>
          </TR>
          <TR class=tdbg>
            <TD class=tdbg5 height="51" colspan="4"><p align="center">
                <input type="hidden" name="filesnames" value=<%=jspName%>>
                <input type="hidden" name="seraction" value="sermod">
                <input type="hidden" name="btscode" id="btscode" value="<%=strbtscode%>">
                <input type="hidden" name="btsname" id="btsname" value="<%=strbtsname%>">
                <input type="hidden" name="snid" id="snid" value="<%=strsnid%>">
                <input type="hidden" name="tToPage"  id="tToPage" value="<%=strToPage%>">
                <input type="button" value="增加" name="btnInsert" style="width: 72; height: 25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')" onClick="btnRinsertS();">
                &nbsp;&nbsp;&nbsp;&nbsp;
                <input type="button" value="修改保存" name="JzB1" style="width: 72; height: 25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')" onClick="btnModifyU();">
                &nbsp;&nbsp;&nbsp;&nbsp;
                <input type="reset" value="重置" name="JzB2" style="width: 72; height: 25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')">
                &nbsp;&nbsp;&nbsp;&nbsp;
                <input type="button" value="返回" name="JzB4" style="width: 72; height: 25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')" onClick="btnReturn();">
            </TD>
          </TR>
          </TBODY>
          
        </FORM>
      </TABLE>
      <FORM name="frmReturn" action="/btsm/nnlist_graph.jsp" method="post" target="_parent">
      </FORM></TD>
  </TR>
  </TBODY>
</TABLE>
</BODY>
</HTML>
